///BEGIN PHP PLATFORM ==========
#if defined(PLATFORM_PHP)
#define KEYINT_USER_NEXT_ID "nextid"
#define KEYINT_PRE_ID_STATUS "id_status_"		//status of an account (id)
#define KEYSTR_PRE_ID_NAME	"id_name_"			//display name of an account (id)

#define KEYSTR_PRE_ID "id_"						//each id link to a account identify string

//user certificate
#define KEYOBJ_PRE_CERTIFICATES "cers_"

//user by mail
#define KEYID_PRE_MAILADD "mail_"
#define KEYOBJ_PRE_MAIL_REGINFO "mail_reginfo_"
#define KEYOBJ_PRE_MAIL_CONFIRM "mail_confirm_"
#define KEYOBJ_PRE_MAIL_JOIN_GROUPS "mail_group_"

//guest
#define KEYID_PRE_GUEST 		"guest_"
#define KEYOBJ_PRE_GUEST_DATA	"guest_data_"

//fb 
#define KEYID_PRE_FBTOID		"fbid_" //ex:fbid_1000039849384 => 3
#define KEYID_PRE_IDTOFB		"idfb_"
/////manager fb token
#define KEYINT_FBAPP_NEXT_ID	"fbnext_"
#define KEYSTR_PRE_FBTOKEN		"fbtoken_" //example fbtoken_[FBAPP-ID]_[USE-ID]

//user friends
#define KEYOBJ_PRE_FRIENDS		"friends_"


//statistic
#define KEYINT_MNG_NOF_NEWID 			"mng_numof_newid"
#define KEYINT_MNG_NOF_USER_REGISTED 	"mng_numof_user_registed"
#define KEYINT_MNG_NOF_USER_CONFIRM 	"mng_numof_user_confirm"
#define KEYINT_MNG_NOF_GUEST			"mng_numof_guest"

//manage area
#define KEYOBJ_AREA_MANAGER "area_manager"
#define KEYSTR_PRE_SYSTEM_AREAS "area_system_"
#define KEYSTR_PRE_USER_AREAS "area_user_"

//manage groups
#define KEYOBJ_GROUP_MANAGER "group_manager"
#define KEYSTR_PRE_SYSTEM_GROUPS "group_system_"
#define KEYSTR_PRE_USER_GROUPS "group_user_"
#define KEYSTR_PRE_SYSTEM_GROUP_USERS "group_users_system_"
#define KEYSTR_PRE_USER_GROUP_USERS "group_users_user_"

//manage apps
#define KEYOBJ_APP_MANAGER "app_manager"
#define KEYINT_APP_NEXT_ID "app_next_id"
#define KEYOBJ_PRE_APP_ID "app_id_"
#define KEYMIX_PRE_APP_KEY "apps_"
#define KEYMIX_PRE_APP_USER_KEY "apps_user_"

//gamecenter key
//static key.the next game id. reg on install gamecenter
//manager the id of games.
#define KEYINT_GAMECENTER_NEXT_ID	"next_id"
//static key. the games manager. reg on install gamecenter
#define KEYOBJ_GAMECENTER_MANAGER	"manager"

//static key. reg on create new game
//key for each game. to hold DataGameInfo object
//infomation of a game. how many leaderboards, secretkey, name, description of a game.
#define KEYOBJ_TOKEN_GAMECENTER_GAME_ID	"_games_"

//static key. reg on create new leaderboard
//key format: KEY + game id + leaderboard id
#define KEYOBJ_GAMECENTER_GAME_LEADERBOARD	"board_"

//static key. reg on create new game
//key for each game. to hold DataGamePlay obj
#define KEYOBJ_GAMECENTER_GAMEPLAY	"_gplay_"

//static key. reg on install game center. 
//key to hold DataUserGames object. key for each user. 
//the games that user have been played
#define KEYOBJ_GAMECENTER_USER_GAMES "_games_"

//User Key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_HIGHSCORE "_high_"
//user key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_SCORE "_score_"
//User key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_SCORE_TIME "_sctime_"
//user key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_LASTSCORE "_lscore_"
//User key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_LASTSCORE_TIME "_lsctime_"
//User key. key for each user, each game. reg on create new game
#define KEYINT_TOKEN_GAMECENTER_USER_TOUR_REWARD	"_tward_"
//User key. key for each user. Each user have a list of request from other user
#define KEYOBJ_GAMECENTER_USER_REQUESTS "_request_"
//User key. key for each user, each game. to hold the table user join in that game
#define KEYID_GAMECENTER_USER_GAME_TABLE	"_gtable_"
//User Key. key for each user, each game. to hold the last tournament id
#define KEYINT_GAMECENTER_USER_LAST_TOURID	"_tlastid_"
//User Key. Key for each user, each game. to hold the game data
#define KEYBIN_GAMECENTER_USER_GAME_DATA	"_gdata_"




//////key in gamecenter database
//key to hold a table of a game
#define KEYOBJ_GAME_TABLE	"gctable_"
//key to hold data of transaction. key + gameid + tableid + transaction id
#define KEYBIN_GAME_TABLE_TRANSACTION "gc_trans_"
//key to hold server transaction. key + gameid + tableid
#define KEYBIN_GAME_TABLE_TRANSACTION_SERVER "gc_svtrans_"
//key to hold player transaction. key+gameid+tableid+seatid
#define KEYBIN_GAME_TABLE_TRANSACTION_PLAYER "gc_strans_"
//key to optimize bandwidth that hold the md5 of tournament.
#define KEYMD5_GAME_TOURNAMENT "gc_md5tour"
#define KEYMD5_GAME_FBTOURNAMENT "gc_md5fbtour"


////macro
#define KEY_OF_TRANSACTION_DATA(game, table, transaction) (KEYBIN_GAME_TABLE_TRANSACTION.game."_".table."_".transaction)
#define KEY_OF_SERVER_TRANSACTION(game, table) (KEYBIN_GAME_TABLE_TRANSACTION_SERVER.game."_".table)
#define KEY_OF_PLAYER_TRANSACTION(game, table, seat) (KEYBIN_GAME_TABLE_TRANSACTION_PLAYER.game."_".table."_".seat)
#endif //PLATFORM_PHP
///END PHP PLATFORM ==========